
/* shooting_game/frontend/css/style.css */
@import url('https://fonts.loli.net/css?family=Ma+Shan+Zheng&display=swap');

:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --accent: #ffe66d;
  --dark: #292f36;
  --light: #f7fff7;
}

body {
  font-family: 'Ma Shan Zheng', cursive;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--dark);
  line-height: 1.6;
}

/* 校园主题元素 */
.campus-element {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.campus-element:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 导航栏 */
.navbar {
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-item {
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
  left: 0;
}

/* 按钮样式 */
.btn-campus {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
  transition: all 0.3s ease;
}

.btn-campus:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,107,107,0.6);
}

/* 卡片样式 */
.card-campus {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card-campus:hover {
  transform: scale(1.03);
}

/* 黑板背景 */
.chalkboard-bg {
  background-image: url('../images/chalkboard.png');
  background-size: cover;
  color: white;
  font-family: 'Ma Shan Zheng', cursive;
}

/* 笔记本图标 */
.notebook-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url('../images/notebook-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* 动画效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .btn-campus {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* 粒子效果容器 */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}
